<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>后台新闻服务</title>
    <link rel="stylesheet" href="" th:href="${css_new}" type="text/css">
    <link rel="stylesheet" href="" th:href="${css_dia}" type="text/css">

</head>
<body>
<div class="wrapper">
    <div class="left">
        <form id="formToAddRo">
            <div class="divlanguage">
                <label>周期ID</label>
                <div>
                    <div class="">
                        <input type="text" id="cycle">
                    </div>
                </div>
                <input type="submit" class="form-btn" style="width: 80px;margin-left: 410px;" value="添加周期">
            </div>
        </form>

        <ul class="rotationArea">
            <li th:each="tn:${rotationArea}">
                <div>
                    <label th:text="'周期：'+${tn.cycle}"> </label>
                    <a href="" th:href="'javascript:addRA(\''+${tn.objectid}+'\')'"  class='qy-btn qy-btn-sm' >添加内容</a>
                    <a href="" th:href="'javascript:updateRA(\''+${tn.objectid}+'\')'"  class='qy-btn qy-btn-sm' >修改周期</a>
                </div>
                <div class="ul-li">
                    <ul>
                        <li th:each="ca:${tn.carouselContentList}">
                            <a th:text="'园文ID：'+${ca.relationid}"></a>
                            <a href="" th:href="'javascript:deleteRA(\''+${ca.objectid}+'\')'"  class='qy-btn qy-btn-sm'>删除</a>
                        </li>
                    </ul>
                </div>
            </li>
        </ul>
    </div>
</div>


<!--<button id="deleteData">删除</button>-->
<div class="dialog" id="delallpartdialog">
    <div class="title">
        修改周期
    </div>
    <div id="divUpdateCycle">
        <div class="inputForm">
            <form id="formToupdateRo" class="formCss">
                <label>ID:</label> <input type="text" readonly name="cycleid" id="cycleid"><br>
                <label>周期:</label> <input type="text" id="cycleUp">

            </form>
        </div>
    </div>

    <div class="bottom">
        <!--<input type="button" id="" value="确定" class="btnok">-->

        <input type="submit" id="updateCycle" class=" form-btn" value="修改周期">
        <input type="button" id="closeDialog" value="取消" class=" form-btn">
    </div>
</div>


<div class="dialog setWH" id="addCardialog">


    <div id="divAddra">
        <form id="addImgAndYw">
            <div class="divlanguage">
                <label>周期ID</label>
                <div>
                    <div class="">
                        <input type="text" readonly id="roID" name="rotationid">
                    </div>

                </div>
            </div>

            <div class="divlanguage">
                <label>园文ID</label>
                <div>
                    <div class="">
                        <input name="ywobjectid" id="ywID" value="" class="" placeholder="请选择" autocomplete="off">
                    </div>
                    <ul class="showUlleft" id="listsShowUlleft">
                        <li th:each="lan:${yuanwen}"><a href='#' th:text="${lan.objectid}   "></a></li>
                    </ul>
                </div>
            </div>

            <div class="imgAndbutton">
                <label>图片：1</label> <input type="file" accept="image/jpg" id="img" name="img"
                                           class="form-btn setInputW">

            </div>
            <div class="divbutton">
                <button id="subAddcarousel_content" class=" form-btn"> 保存</button>
                <input type="button" id="closeAddDialog" value="取消" class=" form-btn">
            </div>
        </form>
    </div>
</div>


</body>

<script src="https://ajax.aspnetcdn.com/ajax/jquery/jquery-3.5.1.min.js"></script>
<script type="text/javascript" th:src="${js_new}"></script>
<script type="text/javascript" th:src="${js_dia}"></script>
</html>